import {get, post, del, put} from "@/apis/http/request";
import {DepressCollectDetail} from "@/apis/model/depress/DepressCollectDetailModel";

/**
* 得到列表
* @param params
*/
export const getDepressCollectDetailList = (params: any) => get("/depressCollectDetail/list", params)

/**
* 得到分页列表
* @param params
*/
export const depressCollectDetailPage = (params: any) => post("/depressCollectDetail/page", params)

/**
* 删除数据
* @param id
* @returns
*/
export const deleteDepressCollectDetailById = (id: number) => del("/depressCollectDetail/delete/"+ id)

/**
* 新增数据
* @param param
*/
export const insertDepressCollectDetail = (param: DepressCollectDetail) => post("/depressCollectDetail", param)

/**
* 更新数据
* @param param
*/
export const updateDepressCollectDetail = (param: DepressCollectDetail) => put("/depressCollectDetail", param)